package com.sky.service.user;

import com.sky.dto.ShoppingCartDTO;
import com.sky.pojo.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addSCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查询购物车
     * @return
     */
    List<ShoppingCart> findAll();

    /**
     * 清空购物车
     */
    void cleanAll();

    /**
     * 减少购物车
     * @param shoppingCartDTO
     */
    void subSCart(ShoppingCartDTO shoppingCartDTO);
}
